package com.ruoyi.business.payment.service;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.business.payment.bean.BasePaymentResponse;


public interface IThirdPaymentService {

    /**
     * 提交预支付订单
     * @param requestData 请求参数
     * @return rsp
     */
    BasePaymentResponse submitPrePayOrder(String requestData) throws Exception;

    /**
     * 提交退款订单
     * @param requestData 请求参数
     * @return rsp
     */
    BasePaymentResponse submitReturnOrder(String requestData) throws Exception;

    /**
     * 关闭订单
     * @param requestData 请求参数
     * @return rsp
     */
    BasePaymentResponse submitCloseOrder(String requestData) throws Exception;

    /**
     * 支付完成回调接口
     * @return jsonObj
     */
    JSONObject paymentCallback();

    /**
     * 退款成功回调接口
     * @return jsonObj
     */
    JSONObject refundCallback();

}
